package com.gccloud.design.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gccloud.design.dto.SdApiFlowRepoBindDto;
import com.gccloud.design.entity.SdApiFlowRepoBindEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author guo.wang
 */
@Mapper
public interface SdApiFlowRepoBindDao extends BaseMapper<SdApiFlowRepoBindEntity> {
    /**
     * 基于apiId 查询环节
     *
     * @param apiId api标识
     * @return SdApiFlowRepoBindDto
     */
    SdApiFlowRepoBindDto queryApiRepoInfo(Integer apiId);

    /**
     * 生成环节
     *
     * @param sdApiFlowRepoBindEntity 生成环节
     * @return int
     */
    int insertApiBind(@Param("entity") SdApiFlowRepoBindEntity sdApiFlowRepoBindEntity);
}
